﻿using System.Web.Mvc;

namespace tophd.Controllers
{
    public class AccountController : Controller
    {
        //
        // GET: /Login/

        public ActionResult Index()
        {
            return View();
        }
        [HttpPost]
        public ActionResult Login(string username, string pass)
        {
            if (username.Equals("demo") && pass.Equals("123456"))
            {
                return Redirect("/Home");
            }
            else
            {
                ViewBag.message = "Sai rồi";
                return View();
            }
        }
        [HttpGet]
        public ActionResult Login()
        {
            
                return View();
            
        }
    }
}
